package com.chen.pojo;

import java.util.Date;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

public class Provider {
	
	private Integer id;   //id
	@NotEmpty(message="供应商编码不能为空!")
	private String proCode; //娓氭稑绨查崯鍡欑椽閻拷
	@NotEmpty(message="供应商名称不能为空!")
	private String proName; //娓氭稑绨查崯鍡楁倳缁夛拷
	private String proDesc; //娓氭稑绨查崯鍡樺伎鏉╋拷
	@NotEmpty(message="联系人不能为空!")
	private String proContact; //娓氭稑绨查崯鍡氫粓缁姹�
	@Pattern(regexp="[1]([3][0-9]{1}|59|58|88|89)[0-9]{8}",message="手机号码格式不正确！")
	private String proPhone; //娓氭稑绨查崯鍡欐暩鐠囷拷
	private String proAddress; //娓氭稑绨查崯鍡楁勾閸э拷
	private String proFax; //娓氭稑绨查崯鍡曠炊閻拷
	private Integer createdBy; //閸掓稑缂撻懓锟�
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date creationDate; //閸掓稑缂撻弮鍫曟？
	private Integer modifyBy; //閺囧瓨鏌婇懓锟�
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date modifyDate;//閺囧瓨鏌婇弮鍫曟？
	/**
	 * 浼佷笟钀ヤ笟鎵х収
	 */
	private String companyLicPicPath;
	/**
	 * 缁勭粐鏈烘瀯浠ｇ爜璇�
	 */
	private String orgCodePicPath;
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getProCode() {
		return proCode;
	}
	public void setProCode(String proCode) {
		this.proCode = proCode;
	}
	public String getProName() {
		return proName;
	}
	public void setProName(String proName) {
		this.proName = proName;
	}
	public String getProDesc() {
		return proDesc;
	}
	public void setProDesc(String proDesc) {
		this.proDesc = proDesc;
	}
	public String getProContact() {
		return proContact;
	}
	public void setProContact(String proContact) {
		this.proContact = proContact;
	}
	public String getProPhone() {
		return proPhone;
	}
	public void setProPhone(String proPhone) {
		this.proPhone = proPhone;
	}
	public String getProAddress() {
		return proAddress;
	}
	public void setProAddress(String proAddress) {
		this.proAddress = proAddress;
	}
	public String getProFax() {
		return proFax;
	}
	public void setProFax(String proFax) {
		this.proFax = proFax;
	}
	public Integer getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(Integer createdBy) {
		this.createdBy = createdBy;
	}
	public Date getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	public Integer getModifyBy() {
		return modifyBy;
	}
	public void setModifyBy(Integer modifyBy) {
		this.modifyBy = modifyBy;
	}
	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public String getCompanyLicPicPath() {
		return companyLicPicPath;
	}
	public void setCompanyLicPicPath(String companyLicPicPath) {
		this.companyLicPicPath = companyLicPicPath;
	}
	public String getOrgCodePicPath() {
		return orgCodePicPath;
	}
	public void setOrgCodePicPath(String orgCodePicPath) {
		this.orgCodePicPath = orgCodePicPath;
	}
	
	
}
